home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / h / smtp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-11  |  1.5 KB  |  36 lines

  1.  
  2. /* timeouts for smtpsrvr */
  3. #define NTIMEOUT        180     /*  3 minute timeout on net I/O  */
  4. #define DTIMEOUT        600     /*  10 minute timeout on submit I/O */
  5.  
  6. /* smtp timeouts */
  7. #define SM_TIME        60        /* default timeout */
  8. #define SM_HTIME        SM_TIME        /* Time allowed for HELO command */
  9. #define SM_OTIME        60             /* Time allowed for a netopen */
  10.  
  11. /*
  12.  * for waiting for first response after connection
  13.  * give a lot of time to first MX, then back off
  14.  */
  15.  
  16. #define SM_ATIME    240        /* Time allowed for answer: 1st open */
  17. #define SM_ATMIN    90        /* Time allowed for answer: minimum */
  18. #define SM_ATINC    30        /* backoff increment */
  19.  
  20. #define SM_STIME        120          /* Time allowed for MAIL command */
  21. #define SM_TTIME        300          /* Time allowed for RCPT command */
  22. #define SM_QTIME        SM_TIME        /* Time allowed for QUIT command */
  23.  
  24. #define SM_RTIME        SM_TIME        /* Time allowed for a RSET command */
  25. #define SM_DTIME        SM_TIME        /* Time allowed for a DATA command */
  26. #define SM_PTIME        120         /* Time allowed for the "." command */
  27. #define SM_BTIME        240         /* Time allowed for a block of text */
  28.  
  29.  
  30. struct sm_rstruct {      /* save last reply obtained           */
  31.     int     sm_rval;            /* rp.h value for reply               */
  32.     int     sm_rlen;            /* current lengh of reply string      */
  33.     char    sm_rgot;            /* true, if have a reply              */
  34.     char    sm_rstr[LINESIZE];  /* human-oriented reply text          */
  35. };
  36.